from GuoQing10_1.zy1.Page import Page
from selenium.webdriver.common.by import By
import time

class Page2(Page):
    #搜索框输入白酒
    sousuo_loc = (By.XPATH,'//input[@id="wd" and @class="search-form"]')
    def sousuo(self):
        self.send_keys(self.sousuo_loc,'白酒')
    #回车搜索
    sou_loc = (By.XPATH,'//input[@class="search-btn" or @type="submit"]')
    def sou(self):
        self.click(self.sou_loc)

    def test_sousuo_02(self):
        self.test_login_01()
        self.sousuo()
        self.sou()
        time.sleep(5)


